function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g1_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 84);

T = bbeffectivedemandmatchirf_order4.dynamic_resid_tt(T, y, x, params, steady_state, it_);

T(36) = (-y(10))/(y(1)*y(1));
T(37) = T(13)*T(36);
T(38) = T(37)/T(17);
T(39) = getPowerDeriv(T(18),T(6),1);
T(40) = getPowerDeriv(y(10)*T(4)*T(5),T(6),1);
T(41) = params(24)*T(13)*T(40);
T(42) = getPowerDeriv(T(8),T(9),1);
T(43) = 1/y(1);
T(44) = T(13)*T(43);
T(45) = T(44)/T(17);
T(46) = getPowerDeriv(y(2),params(6),1);
T(47) = T(16)*T(46);
T(48) = T(17)*T(17);
T(49) = (-(T(14)*T(47)))/T(48);
T(50) = 1/y(11);
T(51) = T(20)*params(2)*T(39)*T(49)+T(19)*T(50);
T(52) = getPowerDeriv(y(11),params(6),1);
T(53) = params(24)*T(40)*T(5)*y(10)*T(52);
T(54) = T(12)*T(5)*T(52)/T(17);
T(55) = (-y(2))/(y(11)*y(11));
T(56) = T(20)*params(2)*T(39)*T(54)+T(19)*T(55);
T(57) = (-(1/y(22)));
T(58) = (-T(21))/(y(3)*y(3));
T(59) = getPowerDeriv(T(22),1-T(7),1);
T(60) = T(58)*T(59);
T(61) = params(2)*getPowerDeriv(y(17),T(7),1);
T(62) = 1/y(4);
T(63) = 2*(y(18)/y(4)-params(3));
T(64) = 1/y(19);
T(65) = params(8)*(T(28)-params(3))*T(64)+T(28)*params(8)*T(64)-T(10)*T(64)*2*(T(28)-params(3));
T(66) = getPowerDeriv(y(30)*y(4),params(1),1);
T(67) = (-y(18))/(y(4)*y(4));
T(68) = (-y(39))/(y(19)*y(19));
T(69) = params(8)*(T(28)-params(3))*T(68)+T(28)*params(8)*T(68)-T(10)*2*(T(28)-params(3))*T(68);
T(70) = (-(getPowerDeriv(1-y(5),1-params(6),1)));
T(71) = T(15)*T(70);
T(72) = (-(T(14)*T(71)))/T(48);
T(73) = getPowerDeriv(y(36)*y(21),1-params(1),1);
T(74) = (-(getPowerDeriv(1-y(21),1-params(6),1)));
T(75) = T(12)*T(4)*T(74)/T(17);
T(76) = 1/params(38);
T(77) = getPowerDeriv(y(41),(-1),1);
T(78) = getPowerDeriv(y(32),1-params(9),1);
T(79) = T(78)/y(3);
T(80) = T(59)*T(79);
T(81) = (-y(35))/(y(8)*y(8));
T(82) = 1/y(8);
T(83) = (-y(47))/(y(35)*y(35));
T(84) = 1/y(35);

end
